#ifndef TERMINALCONSOLE_H
#define TERMINALCONSOLE_H

#include <QWidget>
#include <QPixmap>
#include <QDebug>
#include <QLineEdit>
#include <QString>
#include <QMessageBox>
#include <QFile>
#include <QMouseEvent>
#include <QPoint>
#include "reportweather.h"
#include "musicplayer.h"
#include "smarthome.h"

namespace Ui {
class TerminalConsole;
}

class TerminalConsole : public QWidget
{
    Q_OBJECT

public:
    explicit TerminalConsole(QWidget *parent = nullptr);
    ~TerminalConsole();
    void mouseMoveEvent(QMouseEvent *e);//鼠标移动
    void mousePressEvent(QMouseEvent *e);//鼠标按下移动

private slots:

    void on_toolButton_clicked();

    void on_toolButton_2_clicked();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::TerminalConsole *ui;
    QPoint p;
    reportWeather * reportPage;
    musicPlayer * musicPage;
    smartHome * smartPage;
};

#endif // TERMINALCONSOLE_H
